<div class="page-header">
  <h1> 角色 <small> <i class="icon-double-angle-right"> &nbsp;</i> {% if adminHelper.checkRight('Admin/Roles/save')%} <a  href="#"  data-pageid="this" data-navname="this" class="page_btn" data-url="{{url('Admin/Roles/save')}}">添加角色</a> {%endif%} </small> </h1>
</div>
<!-- /.page-header -->
<div class="row">
  <div class="col-xs-12"> 
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">
      <div class="col-xs-12">
        <div class="table-responsive">
          <table id="sample-table-1" class="table table-striped table-bordered table-hover">
            <thead>
              <tr>
                <th width="30">-</th>
                <th>角色</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            
            {% if page.items is defined %}
            {% for item in page.items %}
            <tr id="{{item.gid}}"  parent="{{item.parent_id}}">
              <td>{{ item.gid }}</td>
              <td>{{ item.gname }}</td>
              <td> {% if adminHelper.checkRight('Admin/Roles/save')%} <a href="javascript:void(0)" data-pageid="this" data-navname="this" class="page_btn" data-url="{{url('Admin/Roles/save/gid/'~item.gid)}}">编辑</a> {%endif%}
                {% if adminHelper.checkRight('Admin/Roles/del')%} <a class='delete' href="javascript:void(0)" data-message="确定删除分组  '{{item.gname}}' ? 删除后改组成员将无法登陆" data-url="{{url('Admin/roles/del/id/'~item.gid)}}" >删除</a> {%endif%} </td>
            </tr>
            {% endfor %}
            {% endif %}
              </tbody>
            
          </table>
        </div>
        <!-- /.table-responsive --> 
      </div>
      <!-- /span --> 
    </div>
    <!-- /row --> 
    
    {% include "elements/page.html" %} 
    <!-- PAGE CONTENT ENDS --> 
  </div>
  <!-- /.col --> 
</div>
<!-- /.row --> 
